package com.ftg.youx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.*;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 员工表
 *
 * @TableName sys_emp
 */
@Data
@TableName(value = "sys_emp")
public class SysEmp implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)

    private Integer id;

    /**
     *
     */
    @NotBlank(message = "Name cannot be blank")
    @Pattern(regexp = "^[a-zA-Z]{10,20}$", message = "Name must be 4 to 16 characters long and contain only letters, numbers, underscores, and hyphens")
    private String name;

    /**
     *
     */
    @Size(min = 1, max = 3)
    private Integer gender;

    /**
     * 创建时间
     */
    private LocalDate createTime;

    /**
     * 更新时间
     */
    private LocalDate updateTime;


}